package de.hsb.ai.learning.filter;

import de.hsb.ai.learning.Replay;
import de.hsb.ai.util.ScotlandJadeHelper;
import de.hsb.ai.util.ScotlandJadeGameLogger.Entry;

public class FugitiveEscapeEntryFilter extends FugitiveEntryFilter {
	
	public FugitiveEscapeEntryFilter(String name) {
		super(name);
	}
	
	@Override
	public boolean accepts(Replay replay, Entry entry) {
		boolean hasHadToReveal = ScotlandJadeHelper.hasToRevealAt(replay.getFugitiveMoveCount());
		return super.accepts(replay, entry) && hasHadToReveal; 
	}

}
